var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.forceStartQuest();
            qm.dispose()
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.forceStartQuest();
            qm.dispose()
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk("治疗希纳斯病的药，拿回来了吗？", 5, 2520000, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk("辛苦你了。这个季节的首要任务就是帮助希纳斯恢复身体。", 5, 2520000, true, true);
                qm.gainItem(4033969, -1)
            } else {
                if (status === a++) {
                    qm.dispose();
                    qm.warp(303090310, 0, false);
                    qm.forceCompleteQuest(32623)
                }
            }
        }
    }
};